package cn.virens.library.http.callback;

import android.content.Context;

import cn.virens.library.widget.dialog.LoadingDialog;


/**
 * Created by virens on 2017/3/17.
 */

public abstract class HttpCallbackLoading<T> extends HttpCallback<T> {
    private LoadingDialog dialog;

    public HttpCallbackLoading(Context context) {
        super(context);
        this.dialog = LoadingDialog.show(context);
    }

    @Override
    public void onFinished() {
        super.onFinished();
        this.dialog.dismiss();
    }
}
